contains
Checks if this text contains the specified substring.
Note that for all texts t
, t.contains('')
is true, and for all texts u
and v
such that u == v
, u.contains(v)
is true.
t.contains(u)
is equivalent to t.index_of(u) >= 0
.
Return
true if this text contains the specified substring, false otherwise
Since
0.6.0
Parameters
text
the substring for which to search